home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Magazin: Amiga-CD 1998 February
/
Amiga-CD 1998 #2.iso
/
software
/
dito
/
arexx
/
golded
/
findword_dictionary.ged
next >
Wrap
Text File
|
1997-02-05
|
742b
|
46 lines
/*
** FindWord © Dirk Holtwick, 1997
**
** Small example for an ARexx-Script using the Dictionary
** tool out of GoldEd
**
** If you want to use this script you may want to change some
** lines, so that your prefered vocabulary file will be
** automatically loaded.
*/
OPTIONS RESULTS
'LOCK CURRENT RELEASE=4'
IF RC ~= 0 THEN EXIT
'QUERY WORD'
w = RESULT
/*
** Starting and waiting for FastDict
*/
IF ~SHOW('Ports','DICT') THEN DO
ADDRESS 'COMMAND'
'Run <>nil: DITO:Dictionary' /* <-- You may add the name of an vocabulary file here */
'SYS:RexxC/WaitForPort DICT'
ADDRESS
END
/*
** If active ask for word
*/
IF SHOW('Ports','DICT') THEN DO
ADDRESS 'DICT' 'SHOW'
ADDRESS 'DICT' 'SETWORD' w
END
'UNLOCK'
EXIT